<?php htmlTemplate('index/header.tpl.php')?>
<script type="text/javascript">
function save(){
	var url = '<?php echo MVC_WWW_HOST?>user/saveuserinfo';
	var email = $.trim($("#email").val());
	var phone = $.trim($("#phone").val());
	var pwd = $.trim($("#pwd").val());
	var username = $.trim($("#username").val());
	var name = $.trim($("#name").val());
	var code = $.trim($("#code").val());
	var checkcode = $.trim($("#checkcode").val());
    $.post(url,{'email':email,'phone':phone,'pwd':pwd,'username':username, 'name':name,'code':code,'checkcode':checkcode},function(rs){
        $("#msginfo").html(rs);        
    })
}
function loadswf(msg){
	var html = $(".zpintro").html();
	$(".zpintro").html(msg+'<br>'+html);
}
swfobject.embedSWF("<?php echo MVC_WWW_HOST?>doc/flash/SocketPhp.swf?a=<?php echo date("Ymd")?>", "flashContent", "440", "435", "9.0.0");

</script>
<?php htmlTemplate('index/userleft.tpl.php')?>
        <div style="" class="lrtab">    
        <a href="<?php echo MVC_WWW_HOST?>user/lottery" <?php if (Http::get('do')=='') {echo 'class="lrtabon"';}?> style="border-left: solid 1px #DFDFDF" >幸运转盘</a>
         <a href="<?php echo MVC_WWW_HOST?>user/lottery/do/24dian" <?php if (Http::get('do')=='24dian') {echo 'class="lrtabon"';}?> >疯狂24点</a>
        <a href="<?php echo MVC_WWW_HOST?>user/lottery/do/list" <?php if (Http::get('do')=='list') {echo 'class="lrtabon"';}?> >奖励记录</a>
        </div>
        <div class="clear"></div>
        <div>
        	<table width="100%" cellpadding="3" cellspacing="1" class="ctable">
            
	            <tr class="tr2">
	            	<td align="center">奖励类型</td>
	            	<td align="center">获得积分</td>
	                <td align="center">消耗积分</td>
	                <td align="center">时间</td>               
	                <td align="center">说明</td>
	               
	            </tr>
	            <?php foreach ($rs['list'] as $k=>$v):?>
	            <tr class="tr1">
	                <td align="center"><?php echo User::getArardtype($v['type'])?></td>
	                <td align="center"><?php echo $v['point'];?></td>
	                <td align="center"><?php echo $v['expend'];?></td>
	                <td align="center"><?php echo date("Y/m/d H:i",$v['timeline']);?></td>
	                
	                <td align="center"><?php echo $v['remark'];?></td>
	               
	                
	            </tr>
	            <?php endforeach;?>
	            <tr>
	            	<td colspan="5"><?php echo $rs['html'];?></td>
	            	            	
	            </tr>
            </table>
        </div>
<?php htmlTemplate('index/userfooter.tpl.php')?>
<?php htmlTemplate('index/footer.tpl.php')?>